package com.yihusitian.zsxq.controller;

import com.yihusitian.zsxq.service.DataBuildService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/databuild")
public class DataBuildController {

    @Autowired
    private DataBuildService dataBuildService;

    @RequestMapping("/execute")
    public String execute() {
        dataBuildService.buildData();
        return "SUCCESS";
    }
}
